/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const transactionRouter = {
  path: '/transactionmanagement',
  component: Layout,
  redirect: '/transactionmanagement/detection',
  name: 'Table',
  meta: {
    title: '交易管理',
    icon: 'table'
  },
  children: [
    {
      path: '/detection/list',
      component: () => import('@/views/transactionManagement/detection/index.vue'),
      name: 'DynamicTable',
      meta: { title: '检测交易', icon: 'el-icon-printer' },

    },
    {
      path: '/detection/create',
      component: () => import('@/views/transactionManagement/detection/create.vue'),
      name: 'DynamicTable',
      meta: { title: '新建交易', icon: 'el-icon-printer' },
      hidden: true
    },
    {
      path: '/detection/detail',
      component: () => import('@/views/transactionManagement/detection/detail.vue'),
      name: 'DynamicTable',
      meta: { title: '单据详情', icon: 'el-icon-printer' },
      hidden: true
    },
    {
      path: '/detection/steps',
      component: () => import('@/views/transactionManagement/detection/steps.vue'),
      name: 'DynamicTable',
      meta: { title: '交易流程', icon: 'el-icon-printer' },
      hidden: true
    },
    {
      path: 'drag-table',
      component: () => import('@/views/transactionManagement/inspection/index.vue'),
      name: 'DragTable',
      meta: { title: '检验交易', icon: 'el-icon-takeaway-box' }
    },
    {
      path: 'inline-edit-table',
      component: () => import('@/views/transactionManagement/authentication/index.vue'),
      name: 'InlineEditTable',
      meta: { title: '认证交易', icon: 'el-icon-document-checked' }
    }
  ]
}
export default transactionRouter
